<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<title>无标题文档</title>
	<link href="/static/css/default.css" rel="stylesheet" type="text/css">
	<link href="/static/css/style/green.css" rel="stylesheet" type="text/css" id=link'>

</head>

<body style="overflow:hidden; padding:10px;">
	<form>
		<table class="formtable" style="width:580px;">

			<tbody>

				<tr>
					
					<td class="tlabel">代理商名称</td>
					<td>
						<input type="text" class="forminput inputstyle1" id="name" value="{$info.name}">
					</td>
					
				</tr>
				<tr>
					<td class="tlabel">联系人</td>
					<td>
						<input type="text" class="forminput inputstyle1" id="truename" value="{$info.truename}">
					</td>

				</tr>
				<tr>
					
					<td class="tlabel">联系电话</td>
					<td>
						<input type="text" class="forminput inputstyle1" id="phone" value="{$info.phone}">
					</td>
				
				</tr>
				<tr>
					<td class="tlabel">微信号</td>
					<td>
						<input type="text" class="forminput inputstyle1" id="weixin" value="{$info.weixin}">
					</td>

				</tr>
				<tr>


					<td class="tlabel">支付宝号</td>
					<td>
						<input type="text" class="forminput inputstyle1" id="zhifubao" value="{$info.zhifubao}">
					</td>
				
				</tr>
				<tr>
					<td class="tlabel">开户行</td>
					<td>
						<input type="text" class="forminput inputstyle1" id="kaihuhang" value="{$info.kaihuhang}">
					</td>
				</tr>
				<tr>
					<td class="tlabel">银行卡号</td>
					<td >
						<input type="text" class="forminput inputstyle1" id="kahao" value="{$info.kahao}">
					</td>
				</tr>
				<tr>
                    <td class="tlabel">签到收费</td>
                    <td><input type="text" class="forminput inputstyle" id="model1" value="{$info.model1}"> &nbsp;&nbsp;元</td>
                
                </tr>
                <tr>
                    <td class="tlabel">签到+视频收费</td>
                    <td><input type="text" class="forminput inputstyle" id="model2" value="{$info.model2}"> &nbsp;&nbsp;元</td>
                   
                </tr>






			</tbody>

		</table>

		<div class="formbtn">
			<input type="button" value="保存" class="btnsave">
			<input type="button" value="取消" class="btncancel">
		</div>
		<input type="hidden" id="id" value="{$info.id}" />
	</form>


</body>
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/vue2.js"></script>
<script src="/static/js/layer/layer.js"></script>
<link rel="stylesheet" href="/static/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="/static/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="/static/js/city.data-3.js"></script>
<script charset="utf-8" src="/static/My97DatePicker/WdatePicker.js"></script>

<script>
	

	$(function () {
		$(".btnsave").click(function () {
		
			var id = $("#id").val();
		
			var name = $("#name").val();
			var truename = $("#truename").val();
			var phone = $("#phone").val();
			var weixin = $("#weixin").val();
			var zhifubao = $("#zhifubao").val();
			var kaihuhang = $("#kaihuhang").val();
			var kahao = $("#kahao").val();
			var model1 = $("#model1").val();
			var model2 = $("#model2").val();
			
			




			$.post("/super/Mechanism/dailiadd", {
				"id": id, "name": name, "truename": truename, "phone": phone,
				"weixin": weixin, "zhifubao": zhifubao, "kaihuhang": kaihuhang, "kahao": kahao,"model1":model1,"model2":model2
			}, function (data) {
				if (data.status == 200) {
					var index = parent.layer.getFrameIndex(window.name);
					window.parent.iframe.contentWindow.location.reload(true);
					console.log(window.parent.iframe);
					parent.layer.close(index);
				} else {
					layer.msg(data.message);
				}
			});
		});
		$(".btncancel").click(function () {
			var index = parent.layer.getFrameIndex(window.name);
			parent.layer.close(index);
		});
	});


</script>

</html>